Skip to content

export RequestHandler#158

Open
cryptix wants to merge 1 commit intoqor:masterfrom
cryptix:exposeHandlerInterface
Open

export RequestHandler#158
cryptix wants to merge 1 commit intoqor:masterfrom
cryptix:exposeHandlerInterface

Conversation

@cryptix
Copy link

@cryptix cryptix commented Dec 14, 2018

This allows return wrappers into the router like this:

func NewThing(...) admin.RequestHandler { }


func someRes() {
  r:=Admin.GetRouter()
  r.Post("/some/thing", NewThing())
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant